package com.heart.sell.pojo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.heart.sell.util.serializer.Date2LongSerializer;
import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author Luo Zhen
 * @create 2019-04-30 14:34
 */
@Data
@DynamicUpdate
@Entity
@Table(name = "seller_info")
public class SellerInfo {

    @Id
    private String sellerId;

    private String username;

    private String password;

    private String openid;

    @JsonSerialize(using = Date2LongSerializer.class)
    private Date createTime;
    @JsonSerialize(using = Date2LongSerializer.class)
    private Date updateTime;

}
